<? include "./configs/session_check.php";
include "./configs/config.php";

$userid=$_SESSION['userid'];
if(isset($_POST['queryString'])) {
			$queryString = $_POST['queryString'];		
			if(strlen($queryString) >0) {
				$query = "SELECT * FROM Projects WHERE ProjectManager='$userid' AND ProjectID LIKE '%$q%' AND ProjectTitle LIKE '%$q%'";
				$result = mysql_query($query) or die("There is an error in database please contact support@ExploreMyBlog.Com");
					while($row = mysql_fetch_array($result)){
					echo '<li onClick="fillp(\''.$row[ProjectID].'\');">'.$row[ProjectTitle].'</li>';                                         
      }
	  }
	  }

?>